<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/xhtml/index.xhtml">
	<ui:define name="content">
		<h:dataTable value="#{ordermb.searchedCarList}" var="searchedCar" styleClass="cartop">
			<h:column>
				<h:graphicImage library="images" name="#{searchedCar.photo}"></h:graphicImage>
			</h:column>
			<h:column>
				<h:panelGrid columns="2" styleClass="description">
					<h:outputText value="Brand" />
					<h:outputText value="#{searchedCar.brand}" />
					<h:outputText value="Model" />
					<h:outputText value="#{searchedCar.model}" />
					<h:outputText value="Quantity doors" />
					<h:outputText value="#{searchedCar.quantityDoors}" />
					<h:outputText value="Quantity seats" />
					<h:outputText value="#{searchedCar.quantitySeats}" />
					<h:outputText value="Transmission" />
					<h:outputText value="#{searchedCar.transmission}" />
					<h:outputText value="Price per day" />
					<h:outputText value="#{searchedCar.price}$" />
				</h:panelGrid>

			</h:column>
		</h:dataTable>
	</ui:define>
</ui:composition>

</html>